const express = require("./express");
const app = express(); // express 是一个函数

app.get(
  "/",
  function (req, res, next) {
    console.log(1);
    next();
  },
  function (req, res, next) {
    console.log(2);
    // next();
  },
  function (req, res, next) {
    console.log(3);
    next();
  }
);
app.get("/", function (req, res, next) {
  console.log(123);
  res.end("ok");
});
app.listen(3000, function () {
  console.log("server start 3000");
});
